<?php
require_once 'config.php';

$page = new Template(TEMPLATE_DIR . 'login.html');
$page->addCss('css/loginform.css');
$page->addJs('jsc/jquery-1.7.1.min.js');
$page->addJs('jsc/dialog.js');
$page->addJs('jsc/loginform.js');

if (isset($_SESSION['redirect'])) {
    $page['redirect'] = $_SESSION['redirect'];
}

echo $page->render();